<template>
    <div class="screen" @click="screen()">
      <div class="screenOne">
        <span>附近</span>
        <i></i>
      </div>
      <div class="screenTwo">
        <span>智能排序</span>
        <i></i>
      </div>
      <ul class="list" v-if="listShow">
        <li @click="change" :class="{on:adr1==true}">
          <span>附近</span>
          <div>
            <p :class="{active:adr2==true}">附近</p>
            <p>500米</p>
            <p>1000米</p>
            <p>1500米</p>
          </div>
        </li>
        <li>金牛区</li>
        <li>武侯区</li>
        <li>高新区</li>
      </ul>
      <div class="mode">

      </div>
    </div>

</template>

<script>
  export default {
    props: [

    ],
    data(){
      return{
        listIsShow:false,
        listShow:false,
        adr1:true,
        adr2:true
      }
    },
    methods:{
      screen: function() {
        if(this.listIsShow == false){
          this.listShow = true;
          this.listIsShow = true;
        }else {
          this.listShow = false;
          this.listIsShow = false;
        }
      }
    }
  }
</script>

<style scoped lang="scss">
  .screen{
    width: 100%;
    height: 78rpx;
    font-size: 28rpx;
    text-align: center;
    color: #333333;
    border-top: 1rpx solid #e6e6e6;
    border-bottom: 1rpx solid #e6e6e6;
    position: relative;
    .screenOne{
      height: 48rpx;
      line-height: 48rpx;
      float: left;
      margin-top: 17rpx;
      width: 49%;
      border-right: 1rpx solid #e6e6e6;
      span{
        float: left;
        margin-left: 150rpx;
      }
      i{
        width: 0;
        height: 0;
        float: left;
        margin-top: 17rpx;
        margin-left: 15rpx;
        border-left: 13rpx solid transparent;
        border-right: 13rpx solid transparent;
        border-top: 18rpx solid #666666;
      }
    }
    .screenTwo{
      height: 48rpx;
      line-height: 48rpx;
      float: right;
      margin-top: 17rpx;
      width: 50%;
      span{
        float: left;
        margin-left: 115rpx;
      }
      i{
        width: 0;
        height: 0;
        float: left;
        margin-top: 17rpx;
        margin-left: 15rpx;
        border-left: 13rpx solid transparent;
        border-right: 13rpx solid transparent;
        border-top: 18rpx solid #666666;
      }
    }
    .list{
      width:100%;
      height:400rpx;
      background:#ffffff;
      margin-top:80rpx;
      li{
        width: 49%;
        height: 100rpx;
        line-height: 100rpx;
        text-align: left;
        text-indent: 60rpx;
        color: #999999;
        font-size: 30rpx;
        background: #f0f0f0;
        div{
          width:100%;
          height:400rpx;
          background:#fff;
          z-index:2;
          margin-left:100%;
          margin-top:-100rpx;
          p{
            width: 80%;
            margin-left: 20%;
            height: 100rpx;
            line-height: 100rpx;
            border-bottom: 1px solid #d6d6d6;
          }
          .active{
            color: #3fddbf;
          }
        }
      }
      .on{
        background: #ffffff;
      }
    }
    .mode{
      width: 100%;
      height: 100%;
      background: #000000;
      opacity: 0.2;
      top: 195rpx;
      display: none;
    }
  }

</style>
